<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core">

<ui:composition template="/page/template/main.xhtml">

	<ui:define name="title">
		سفارة المملكة الأردنية الهاشمية في الكويت - <h:outputText value="#{appSessionBean.service.title}" escape="false" />
	</ui:define>

	<ui:define name="content">
		<div class="content">
			<div class="article-container">
				<h3><h:outputText value="#{appSessionBean.service.title}" escape="false" /></h3>

				<div class="article-separator"></div>

				<div class="clear-floating"></div>

			</div>
			<div class="clear-floating"></div>
			
			<h:outputText value="#{appSessionBean.service.body}" escape="false" />
			
			<div class="article-separator"></div>
			
			<table class="website-table pdf-links">
				<h:form>
					<c:if test="#{appSessionBean.service.attachments != null}">
						<c:forEach items="#{appSessionBean.service.attachments}" var="attachment" >
							<tr>
								<td>
									<h:commandLink action="#{appSessionBean.downloadFile}" >تحميل النموذج (${attachment.attachmentTitle})&#160;
										<img src="/JEIK/resources/images/save.png"></img>
										<f:param name="FILE_NAME" value="${attachment.attachmentFileName}"/>
									</h:commandLink>
								</td>
							</tr>
						</c:forEach>
					</c:if>
				</h:form>
			</table>
		</div>

	</ui:define>

</ui:composition>
</html>